From: Siebrand Mazeland Date: Sun, 2 Nov 2008 23:05:05 +0000 (+0000) Subject: (bug 15903) Add upload link to Nostalgia skin. Patch by Nikolaos S. Karastathis. X-Git-Tag: 1.31.0-rc.0~44458 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=9c628370643337a325d38e25c4d9b0ff902c6cc6;p=lhc%2Fweb%2Fwiklou.git (bug 15903) Add upload link to Nostalgia skin. Patch by Nikolaos S. Karastathis. --- diff --git a/CREDITS b/CREDITS index 6d2ac09695..6c0a6763e1 100644 --- a/CREDITS +++ b/CREDITS @@ -58,6 +58,7 @@ following names for their contribution to the product. * Mormegil * Nathaniel Herman * Nathan Larson +* Nikolaos S. Karastathis * Paul Copperman * RememberTheDot * ST47 diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a216ff7c65..257d4e987b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -189,6 +189,7 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 15125) Add Public Domain to default options when installing. Patch by Nathan Larson. * Set a special temporary directory for ImageMagick with $wgImageMagickTempDir * (bug 16113) Show/hide for redirects in Special:NewPages +* (bug 15903) Upload link was added to Nostalgia skin === Bug fixes in 1.14 === diff --git a/skins/Nostalgia.php b/skins/Nostalgia.php index 70e4dfcbc2..b713cf300e 100644 --- a/skins/Nostalgia.php +++ b/skins/Nostalgia.php @@ -53,7 +53,7 @@ class SkinNostalgia extends Skin { } function topLinks() { - global $wgOut, $wgUser; + global $wgOut, $wgUser, $wgEnableUploads; $sep = " |\n"; $s = $this->mainPageLink() . $sep @@ -71,6 +71,9 @@ class SkinNostalgia extends Skin { if ( $wgUser->isAnon() ) { $s .= $sep . $this->specialLink( "userlogin" ); } else { + if ( $wgEnableUploads ) { + $s .= $sep . $this->specialLink( "upload" ); + } $s .= $sep . $this->specialLink( "userlogout" ); }